<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>采购公告</title>
<%@ include file="/WEB-INF/views/layout/public_css.jsp"%>
<%@ include file="/WEB-INF/views/layout/public_js.jsp"%>
<style type="text/css">
.search-area .form-control {
	width:220px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
    $('#special_news').DataTable({
    	"pagingType":   "full_numbers",
    	"oLanguage" : {
			"sProcessing" : "处理中...",
			"sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
			"oPaginate" : {
				"sFirst" : "首页",
				"sPrevious" : "上页",
				"sNext" : "下页",
				"sLast" : "末页"
			}
		},
    });
    
  //开始时间：  
    $('#qBeginTime').datetimepicker({  
    	format: 'yyyy-mm-dd hh:ii',
        language: 'zh-CN',
        autoclose: true,
    });  
    //结束时间：  
    $('#qEndTime').datetimepicker({  
    	format: 'yyyy-mm-dd hh:ii',
        language: 'zh-CN',
        autoclose: true,
    });
} );


</script>
</head>
<body>
<%@ include file="/WEB-INF/views/layout/head.jsp"%>
<div class="container-fluid">
    <div class="list-title">采购公告列表</div>
    <div class="list-title search-area" style="margin-top:5px;height:auto;background-color:#ffffff;border:1px dashed #817979">
    	<!-- <form class="form-inline">
		  <div class="form-group">
		    <label for="">采购公告（<span class="font-red"> 总项数</span> ）</label>
		  </div>
		  <div class="form-group">
		    <label for="">级别</label>
		    <select class="form-control">
			  <option>国家级</option>
			  <option>市级</option>
			  <option>区县级</option>
			  <option>街道级</option>
			</select>
		  </div>
		  <div class="form-group" style="margin-right:0;">
		    <label for="">时间</label>
	    	<input type="text" class="form-control" name="start" id="qBeginTime" readonly class="form_datetime"/>
		  </div>
		  <div class="form-group">
		    <label for="">—</label>
            <input type="text" class="form-control" name="end" id="qEndTime" readonly class="form_datetime"/>
		  </div>
		  <div class="form-group">
		    <label for="">标题</label>
		    <input type="text" class="form-control" id="" placeholder="">
		  </div>
		  <button type="submit" class="btn btn-default">搜索</button>
		</form> -->
		
		<div class="row">
		<form action="<%=basePath%>/contentMessage/searchZFCG" method="post">
			<div class="col-md-2" style="padding-top:5px;">采购公告（<span class="font-red"> 总项数</span> ）</div>
			<div class="col-md-10">
				<div class="row">
					
					<div class="col-md-4 form-inline">
						  <div class="form-group">
						    <label for="">分类</label>
						    <select class="form-control" name="projectCategory">
							  <option>不限</option>
							  <option>采购中心</option>
							  <option>代理机构</option>
							  <option>部门集中采购</option>
							  <option>分散采购</option>
							  <option>网上交易</option>
							</select>
						  </div>
					</div>
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">类型</label>
						    <select class="form-control" name="plate">
							  <option>采购公告</option>
							  <option>采购预出示</option>
							  <option>采购结果公告</option>
							</select>
						  </div>
					</div>
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">采购方式</label>
						    <select class="form-control" name="procurementMode">
							  <option>不限</option>
							  <option>公开招标</option>
							  <option>邀请招标</option>
							  <option>竞争性谈判</option>
							  <option>询价</option>
							  <option>单一来源</option>
							  <option>竞争性磋商</option>
							  <option>协议竞价</option>
							  <option>电子反拍</option>
							  <option>网上询价</option>
							</select>
						  </div>
					</div>
				</div>
				<div class="row" style="margin-top:10px;">
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">品目</label>
						    <select class="form-control" name="heading" >
							  <option>不限</option>
							  <option>服务类</option>
							  <option>货物类</option>
							  <option>工程类</option>
							</select>
						  </div>
					</div>
					<div class="col-md-8 form-inline">
						<div class="form-group">
						    <label for="">地区</label>
						    <select class="form-control" style="width:115px" name="region0">
							  <option value="0">所有区县</option>
							  <option value="1">非所有区县</option>
							</select>
							<select class="form-control" style="width:115px" name="region1">
							  <option value="0">主城九区</option>
							  <option>渝中区</option>
							  <option>江北区</option>
							  <option>南岸区</option>
							  <option>沙坪坝区</option>
							  <option>九龙坡区</option>
							  <option>大渡口区</option>
							  <option>渝北区</option>
							  <option>巴南区</option>
							  <option>北碚区</option>
							  <option>双桥区</option>
							  <option>两江新区</option>
							  <option>两江新区（旧）</option>
							</select>
							<select class="form-control" style="width:115px" name="region2">
							  <option value="0">渝东北地区</option>
							  <option>万州区</option>
							  <option>城口县</option>
							  <option>垫江县</option>
							  <option>丰都县</option>
							  <option>奉节县</option>
							  <option>开县</option>
							  <option>梁平县</option>
							  <option>巫山县</option>
							  <option>巫溪县</option>
							  <option>云阳县</option>
							  <option>忠县</option>
							</select>
							<select class="form-control" style="width:115px" name="region3">
							  <option value="0">渝东南地区</option>
							  <option>黔江区</option>
							  <option>涪陵区</option>
							  <option>彭水县</option>
							  <option>石柱县</option>
							  <option>武隆县</option>
							  <option>秀山县</option>
							  <option>酉阳县</option>
							</select>
							<select class="form-control" style="width:115px" name="region4">
							  <option value="0">渝西地区</option>
							  <option>万盛区</option>
							  <option>长寿区</option>
							  <option>江津区</option>
							  <option>合川区</option>
							  <option>璧山区</option>
							  <option>大足区</option>
							  <option>南川区</option>
							  <option>綦江区</option>
							  <option>荣昌县</option>
							  <option>铜梁区</option>
							  <option>潼南县</option>
							  <option>永川区</option>
							</select>
						  </div>
					</div>
				</div>
				
				<div class="row" style="margin-top:10px;">
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">标题</label>
						    <input type="text" class="form-control" id="" name="title" placeholder="">
						</div>
					</div>
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">编号</label>
						    <input type="text" class="form-control"  name="id" id="" placeholder="">
						</div>
					</div>
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">代购机构</label>
						    <input type="text" class="form-control" name="supplier" id="" placeholder="">
						</div>
					</div>
				</div>
				
				<div class="row" style="margin-top:10px;">
					<div class="col-md-4 form-inline">
						<div class="form-group">
						    <label for="">采购人</label>
						    <input type="text" class="form-control" name="addUserName" id="" placeholder="">
						</div>
					</div>
					<div class="col-md-8 form-inline">
						<div class="form-group" style="margin-right:0;">
						    <label for="">时间</label>
					    	<input type="text" class="form-control" name="startTime" id="qBeginTime" readonly="readonly" class="form_datetime"/>
						  </div>
						  <div class="form-group">
						    <label for="">—</label>
				            <input type="text" class="form-control" name="endTime" id="qEndTime" readonly="readonly" class="form_datetime"/>
						  </div>
						  <div class="form-group">
						    <button type="submit" class="btn btn-primary">搜索</button>
						  </div>
					</div>
				</div>
				
			</div>	
			</form>
		</div>
    </div>
  
	<table id="special_news" class="table table-striped" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>项目名称</th>
                <th>项目编号</th>
                <th>采购人</th>
                <th>代理机构</th>
                <th>公告时间</th>
                <th>项目跟踪</th>
            </tr>
        </thead>
        <tbody>
            <%
					  List<ContentMessage> ps_list =  (List<ContentMessage>) request.getAttribute("message");
					  for(ContentMessage b: ps_list)
					  {
					  %>
                 <tr>
               <td><a href="<%=basePath %>/civil/getCM?id=<%=b.id %>"><%=b.title %></a></td>
                <td><%=b.id %></td>
                <td><%=b.addUserName %></td>
                <td><%=b.supplier %></td>
                <td><%=b.createTime %></td>
                <td>跟踪</td>
            </tr>
            	<%
					  }
					  %> 
        </tbody>
    </table>
</div>
</body>
</html>